<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>

	
<title>悦章科技机构平台</title>	

	
<!--内容样式-->
<link rel="stylesheet" href="__PUBLIC__/Home/css/style.css" />


<script src="/Public/static/jquery-2.0.3.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />
	
	
</head>

<body>

	
	<div class="main">
	
	
		<include file="menu" />
		
		
		
		<!--  右侧内容  -->
		<div class="content">
			
			
			<div class= "ct-title">
				<div class="ctt-l">
					<div class="cttl-btn s" id="sj">试卷</div>
					<div class="cttl-btn l" id="lxc">练习册</div>
					<div class="divclear"></div>
				</div>
				<div class="ctt-r">
					<form class="cttr-bd" action="" method="POST">
						<input type="text" placeholder="请输入学生姓名" class="cttrb-wb" name="username" value="{$msg['username']}">
						<select class="cttrb-xl" name="class_id">
							<option value="">选择班级</option>
							<volist name="class_list" id="item">
								<option value="{$item['id']}" <if condition="$item['id'] eq $msg['class_id']">selected</if>>{$item['name']}</option>
							</volist>
						</select>
						<div class="cttrb-sj">
							<input type="date"  name="start_time" value="{$msg['start_time']}">
							<img src="__PUBLIC__/Home/images/img_zhi.png" />
							<input type="date" name="end_time" value="{$msg['end_time']}">
							<div class="divclear"></div>
						</div>
						<button class="cttrb-cx" type="submit">查询</button>
						<div class="divclear"></div>
					</form>
					<div class="divclear"></div>
				</div>
				<div class="divclear"></div>
			</div>
			
			
			
			<!-- 试卷 -->
			<div  class="sj">
				<div class="ct-table">
					<table width="100%" border="0">
						<tbody>
							<tr>
								<th scope="col" width="10%" style="border-top-left-radius: 10px;">学生姓名</th>
								<th scope="col" width="10%">所属班级</th>
								<th scope="col" width="35%">试卷名称</th>
								<th scope="col" width="15%">最近考试时间</th>
								<th scope="col" width="10%">考试次数</th>
								<th scope="col" width="10%">最高分数</th>
								<th scope="col" width="10%" style="border-top-right-radius: 10px;">操作</th>
							</tr>
							<volist name="test_list" id="item">
								<tr>
								  <td>{$item['username']}</td>	
								  <td>{$item['class_name']}</td>
								  <td>{$item['name']}</td>
								  <td>{$item['create_time']}</td>
								  <td>{$item['count']}</td>
								  <td>{$item['max_score']}</td>
								  <td><a href="{:U('Educational/online_detail',array('id'=>$item['id']))}">查看明细</a></td>
								</tr>
							</volist>

						</tbody>
					</table>
				</div>

			<div class="page">
	            {$_page}
	        </div>
			</div>
				
				
			
			<!-- 习题 -->
			<div class="lxc">
				<div class="ct-table">
					<table width="100%" border="0">
						<tbody>
							<tr>
								<th scope="col" width="10%" style="border-top-left-radius: 10px;">学生姓名</th>
								<th scope="col" width="10%">所属班级</th>
								<th scope="col" width="35%">习题名称</th>
								<th scope="col" width="15%">最近做题时间</th>
								<th scope="col" width="10%">做题次数</th>
								<th scope="col" width="10%">正确率</th>
								<th scope="col" width="10%" style="border-top-right-radius: 10px;">操作</th>
							</tr>
							<volist name="practice_list" id="item">
								<tr>
								  <td>{$item['username']}</td>	
								  <td>{$item['class_name']}</td>
								  <td>{$item['name']}</td>
								  <td>{$item['create_time']}</td>
								  <td>{$item['count']}</td>
								  <td>{$item['all_rate']}</td>
								  <td><a href="{:U('Educational/practice_detail',array('id'=>$item['id']))}">查看明细</a></td>
								</tr>
							</volist>
						</tbody>
					</table>
				</div>

<!-- 				<div class="ct-btn">
					<div class="ctb-an"><</div>
					<div class="ctb-an ctb-an-on">1</div>
					<div class="ctb-an">2</div>
					<div class="ctb-an">3</div>
					<div class="ctb-an">></div>
					<div class="divclear"></div>
				</div> -->
			</div>	
				
				
			
			
		</div>
		
		
		
	</div>
	
	
	
</body>
</html>
<script type="text/javascript">
	$(document).ready(function(){
		$('.sj').show();
		$('.lxc').hide();
		$('.s').addClass('cttl-on');
	})
	$("#sj").click(function(){
		$('.s').addClass('cttl-on');
		$('.l').removeClass('cttl-on');
		$('.sj').show();
		$('.lxc').hide();

	})
	$("#lxc").click(function(){
		$('.s').removeClass('cttl-on');
		$('.l').addClass('cttl-on');
		$('.sj').hide();
		$('.lxc').show();

	})
</script>
